<template>
  <div class="myheader">
    <div><slot name="left"></slot></div>
    <div><slot name="center"></slot></div>
    <div class="right" :style="{ color: fontColor }">
      <slot name="right"></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    fontColor: {
      type: String,
      default: "red",
    },
  },
};
</script>

<style lang="less" scoped>
.myheader {
  height: 50px;
  padding: 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccc;
  .right {
    .van-icon {
      font-size: 25px;
    }
  }
}
</style>